substitute (something) with (something else)

Translations
заменить (что-то) на (что-то другое)
You can substitute butter with margarine in this recipe.
Вы можете заменить масло на маргарин в этом рецепте.
Definitions
To replace one item, element, or component with another in a particular context or situation.